Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[codemod] Fix handling of computed paragraph props #44195

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joshkel
Copy link
Contributor

@joshkel joshkel commented Oct 23, 2024

The deprecations/typography-props codemod (see https://mui.com/material-ui/migration/migrating-from-deprecated-apis/#paragraph) failed to consider calculated paragraph props. As a result, it treated <Typography paragraph={isThisAParagram}/> the same as <Typography paragraph/>.

This PR fixes that issue.

The `deprecations/typography-props` codemod (see https://mui.com/material-ui/migration/migrating-from-deprecated-apis/#paragraph) failed to consider calculated paragraph props. As a result, it treated `<Typography paragraph={isThisAParagram}/>` the same as `<Typography paragraph/>`.

This PR fixes that issue.
@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work v6.x migration package: codemod Specific to @mui/codemod labels Oct 23, 2024
@oliviertassinari oliviertassinari changed the title Fix handling of computed paragraph props [codemod] Fix handling of computed paragraph props Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work package: codemod Specific to @mui/codemod v6.x migration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants